package com.chenliang.encrypt.biz;

import com.chenliang.encrypt.config.response.ResponseResult;
import com.chenliang.encrypt.config.sign.Signature;
import com.chenliang.encrypt.empty.User;
import org.springframework.web.bind.annotation.*;

/**
 * @program: springboot_all
 * @description:
 * @author: 陈亮
 * @create: 2022-04-23 22:43
 */
@RestController
@RequestMapping("/user")
public class SignTestController {

    @Signature
    @PostMapping(value = "test/{id}")
    public ResponseResult<String> myController(@PathVariable String id, @RequestParam String client, @RequestBody User user) {
        return ResponseResult.success(String.join(",", id, client, user.toString()));
    }
}
